import request from '@/utils/request'

// 查询辖区范围列表
export function listJurisdictionScope(query) {
  return request({
    url: '/event/manager/jurisdictionScope/list',
    method: 'get',
    params: query
  })
}

// 查询辖区范围详细
export function getJurisdictionScope(id) {
  return request({
    url: '/event/manager/jurisdictionScope/' + id,
    method: 'get'
  })
}

// 新增辖区范围
export function addJurisdictionScope(data) {
  return request({
    url: '/event/manager/jurisdictionScope',
    method: 'post',
    data: data
  })
}

// 修改辖区范围
export function updateJurisdictionScope(data) {
  return request({
    url: '/event/manager/jurisdictionScope',
    method: 'put',
    data: data
  })
}

// 删除辖区范围
export function delJurisdictionScope(id) {
  return request({
    url: '/event/manager/jurisdictionScope/' + id,
    method: 'delete'
  })
}

// 导出辖区范围
export function exportJurisdictionScope(query) {
  return request({
    url: '/event/manager/jurisdictionScope/export',
    method: 'get',
    params: query
  })
}